package com.lin.controller.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@ApiModel(description = "更新用户信息")
@Getter
@Setter
@ToString
public class UpdateCustomerReqMsg {
    @ApiModelProperty(value = "客户编号", required = true)
    @NotNull(message = "客户编号不能为空")
    private Long customerId;

    @ApiModelProperty(value = "昵称")
    private String customerName;

    @ApiModelProperty(value = "国家归属")
    private String nation;

    @ApiModelProperty(value = "是否启用翻译")
    private String nationFlag;

    @ApiModelProperty(value = "手机号",required = true)
    //@NotBlank(message = "手机号码不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机格式有误 注解")
    private String mobile;

    @ApiModelProperty(value = "邮箱")
    @Email(message = "邮箱格式有误 注解")
    private String email;

    @Pattern(regexp = "\\d{4}-\\d{2}-\\d{2}", message = "生日日期格式有误 注解")
    //@NotBlank(message = "生日不能为空")
    private String birthday;
}
